package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.domain.db.Soul;
import org.apache.ibatis.annotations.Update;

public interface SoulMapper extends BaseMapper<Soul> {
    @Update("UPDATE tb_soul SET  is_lock = 0 WHERE questionnaire_id = #{questionnaireId}+1 and user_id=#{useId}")
    void updateIsLock(Integer questionnaireId,Long useId);
    @Update("UPDATE tb_soul SET  report_id =#{reportId} WHERE questionnaire_id = #{questionnaireId} and user_id=#{useId}")
    void updateReport(Integer questionnaireId, String reportId,Long useId);
}
